<template>
  <div>
    <h1>兄弟</h1>
    <Bro-one></Bro-one>
    <hr>
    <Bro-two ref="aaa"></Bro-two>
  </div>
</template>

<script>
import BroOne from '../components/BroOne.vue'
import BroTwo from '../components/BroTwo.vue'
export default {
    components:{
        BroOne,
        BroTwo
    }
    ,
    created(){
        this.$nextTick(()=>{
            console.log(this.$refs.aaa,'this.$refs.aaa')
        })
        
    //this.$bus.$on("要监听的事件名",监听函数(事件执行力就执行))
    // this.$bus.$on("aaa", (v) => {
    //   console.log("我接受到了", v);
    // });
    }
}
</script>

<style>

</style>